import request from '@/utils/request'
const api_name = '/admin/user'
export default {
  // 条件查询带分页
  getPageList(page, limit, searchObj) {
    return request({
      url: `${api_name}/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },
  //锁定用户
  lock(id, status) {
    return request({
      url: `${api_name}/lock/${id}/${status}`,
      method: 'put',
    })
  }
}
